<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>底部</title>
    <meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0.maximum-scale=1.0,user-scalable=no" name="viewport">
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/bossIndex.css">
    <link rel="stylesheet" href="css/flexible.css">
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/fontsize.js"></script>
    <style>
       a{
        text-decoration:none !important;
       }
       
        .footer_tar{
            width: 100%;
            height: 0.6rem;
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #fff;
            z-index: 10;
        }
        .footer_tar ul li{
            width: 33.3%;
            text-align: center;
            float: left;
            margin-top: .08rem
        }
        .footer_tar ul li a{
            display: inline-block;
        }
        .footer_tar ul li:nth-child(1) a>div{
            height: .24rem;
            width: .24rem;
            background: url("images/crm_not_select.png") no-repeat;
            background-size: 100% 100%;
        }
        .footer_tar ul li:nth-child(1) a.actives>div{
            background: url("images/footer_two.png") no-repeat;
            height: .24rem;
            width: .24rem;
            background-size: 100% 100%;
        }
        .footer_tar ul li:nth-child(2) a>div{
            height: .24rem;
            width: .24rem;
            background: url("images/crm_not_select.png") no-repeat;
            background-size: 100% 100%;
        }
        .footer_tar ul li:nth-child(2) a.actives>div{
            background: url("images/footer_two.png") no-repeat;
        }
        .footer_tar ul li:nth-child(3) a>div{
            height: .24rem;
            width: .24rem;
            background: url("images/crm_not_select.png") no-repeat;
            background-size: 100% 100%;
        }
        .footer_tar ul li:nth-child(3) a.actives>div{
            background: url("images/footer_two.png") no-repeat;
        }
        .footer_tar ul li p{
           font-size: .12rem;
           margin-top: .05rem;
        }
        .footer_tar ul li a.actives p{
           font-size: .12rem;
           margin-top: .05rem;
           color: #333346;
        }
    </style>
</head>
<body>
<div class="footer_tar">
    <ul>
        <li>
            <a herf="#" class="actives">
                <div ></div>
                <p>首页</p>
            </a>
        </li>
        <li>
            <a herf="#">
                <div></div>
                <p>首页</p>
            </a>
        </li>
        <li>
            <a herf="#">
                <div></div>
                <p>首页</p>
            </a>
        </li>
    </ul>
</div>
	
</body>
<script>
    $(".footer_tar ul li a").on('click',function(){
       $(this).addClass('actives').parent().siblings().find('a').removeClass('actives');
    })
</script>
</html>